<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function getDivInfo(){
				var d=document.getElementById("d1").childNodes;
				console.log(d.length);
				for(let i=0;i<d.length;i++){
					console.log(d[i].nodeName+":"+d[i].nodeType);
				}
			}
		</script>
	</head>
	<body>
		<div id="d1">
			<h1>We change lives</h1>
			<span>aaa</span>
			<a href="#">tgaobao</a>
			<!--zheshiyigeZhushi-->
			<p>
				xxxxxxxxxxx
			</p>
		</div>
		<input type="button" value="clicke me" onclick="getDivInfo()"/>
	</body>
</html>
